package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import com.enjoyor.soa.traffic.core.efoms.constant.DeviceDetailInfoSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.DeviceDetailInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.IDeviceDetailInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DeviceDetailInfoMapper extends BaseMapper<DeviceDetailInfo> implements IDeviceDetailInfoMapper {

	@Override
    public List<DeviceDetailInfo> selectDeviceDetailInfoList(Map<String, Object> map){
    	return sqlSessionTemplate.selectList(getSqlName(DeviceDetailInfoSqlId.SQL_SELECT_LIST), map);
    }

	@Override
	@SuppressWarnings("rawtypes")
    public Page selectVideoByPage(Page page) {
        return this.selectPageInfo(getSqlName(DeviceDetailInfoSqlId.SQL_SELECT_VIDEO_PAGE), page);
    }
	
	@Override
	@SuppressWarnings("rawtypes")
    public Page selectAssetDevicePage(Page page) {
        return this.selectPageInfo(getSqlName(DeviceDetailInfoSqlId.SQL_SELECT_ASSET_PAGE), page);
    }
	
}
